<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>物流车辆清单</title>
		<!--<link rel="stylesheet" type="text/css" href="css/base.min.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />-->
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/layui/css/layui.css" media="all" />
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/css/baojia.css" />
		<script src="{:_SKIN}/user/layui/lay/dest/layui.all.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.layui-table {
				text-align: center;
			}
			
			.layui-table th {
				text-align: center;
			}
			
			.titlebar {
				margin-bottom: 20px;
			}
			.layui-table td{
				font-size: 12px;
			}	
		</style>
	</head>

	<body>
		<div class="content">
			<div class="titlebar">
				<div class="titlebar-name">物流车辆清单</div>
				<div class="my-s-a-b">
					<span class="release-but mb_15">
		            <a href="{:url('addcar')}" target=""><i class="lee-ico lee-add"></i>增加车辆<i class="lee-ico lee-arraw"></i></a>
				</span>
				</div>
			</div>

			<table class="layui-table">
				<colgroup>
					<col width="60">
					<col width="90">
					<col>
				</colgroup>
				<thead>
					<tr>
						<th>序号</th>
						<th>车辆名称</th>
						<!-- <th>车型</th> -->
						<th>车牌号</th>
						<th>联系人</th>
						<th>手机号</th>
						<th>车长/载重</th>
						<th>车辆状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				{volist name="car" id="vo"}
					<tr>
						<td>1</td>
						<td>{$vo.cname}</td>
						<!-- <td>重型大卡</td> -->
						<td>{$vo.CarNum}</td>
						<td>{$vo.Contact}</td>
						<td>{$vo.cMobile}</td>
						<td>{$vo.CarLength}米/{$vo.CarWidth}宽/{$vo.CarHigh}高</td>
						<td>上架</td>
						<td>
							<a  href="{:url('savecar',array('id'=>$vo['ID']))}" style="color: #01AAED;">修改</a>
							<a class="s_delete" style="color: red;"  data-id="{$vo.ID}">删除</a>
							<a href="" >查看线路</a>
							<a href="wuliuXLZJ.html" >增加线路</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</div>
		{:jq()}
		{:layui()}
		<script type="text/javascript">

		 $(".s_delete").click(function () {

				var ID = $(this).data('id');



				var r=confirm("确定要删除吗？删除后不能恢复");
					if(r==true){

							$.post("{:url('seller/del')}", {ID:ID}, function (res) {

								
								if(res.code==200){
									
									alert('删除成功');
									window.location.reload();

								}else{

									alert(res.msg);
								}
							
						});




					}

			

		


	});
	</script>
	</body>

</html>